package com.wuzhishan.news.service;

import com.wuzhishan.news.pojo.Result;

import javax.servlet.http.HttpSession;

public interface accountService {
    /**
     * 喜欢文章
     * @param articleId
     * @param session
     * @return
     */
    Result favor(String articleId, HttpSession session);

    /**
     * 关注用户
     * @param userId
     * @param session
     * @return
     */
    Result follow(String userId, HttpSession session);

    /**
     * 判断是否已关注目标用户
     * @param userId
     * @param session
     * @return
     */
    Result followCheck(String userId, HttpSession session);

    /**
     * 取消关注用户
     * @param id
     * @param id1
     * @return
     */
    Result unfollow(long id, String id1);
}
